package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.SysListingInformation;
import org.springframework.stereotype.Repository;

/**
 * 房源Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-01
 */
@Repository
public interface SysListingInformationMapper extends BaseMapper<SysListingInformation>
{
    /**
     * 查询房源
     * 
     * @param listingId 房源主键
     * @return 房源
     */
    public SysListingInformation selectSysListingInformationByListingId(Long listingId);

    /**
     * 查询房源列表
     * 
     * @param sysListingInformation 房源
     * @return 房源集合
     */
    public List<SysListingInformation> selectSysListingInformationList(SysListingInformation sysListingInformation);

    /**
     * 新增房源
     * 
     * @param sysListingInformation 房源
     * @return 结果
     */
    public int insertSysListingInformation(SysListingInformation sysListingInformation);

    /**
     * 修改房源
     * 
     * @param sysListingInformation 房源
     * @return 结果
     */
    public int updateSysListingInformation(SysListingInformation sysListingInformation);

    /**
     * 删除房源
     * 
     * @param listingId 房源主键
     * @return 结果
     */
    public int deleteSysListingInformationByListingId(Long listingId);

    /**
     * 批量删除房源
     * 
     * @param listingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysListingInformationByListingIds(Long[] listingIds);
}
